﻿@model AuditModel.Archive

@{
    ViewBag.Title = AuditResources.UI.PageTitle;
    Layout = "~/Views/Shared/CountyAdmin/_CountyAdminLayout.cshtml";
}

<h2>@AuditResources.Archive.ObjectName<text>管理</text></h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm("Edit", "Archive", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    @Html.ValidationSummary(true)
       <fieldset>
        <legend>@AuditResources.Archive.ObjectName</legend>

       @Html.Partial("_ArchiveForm", Model)
       <div class="editor-label">
            @AuditResources.Archive.Attachments
        </div>
        <div class="editor-field">
        <ul class="attachment">
            @foreach (var file in Model.Attachments)
            {
                <li >@AuditWeb.Helpers.Link(this.Html, file.FilePath,file.Title,"_self")</li>
            }
         </ul>
         <br />
         @Html.ActionLink("上传更多附件","Index","Attachment",new {id=Model.ID},new{@class="button"})
        </div>
    </fieldset>
            <div>
<input type="submit" value="@AuditResources.UI.Save" />|
    @Html.ActionLink(AuditResources.UI.BackToList, "Index", new { id = ViewBag.AnnualEventId }, new { @class = "button" })
</div>
}